﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;
using KL.Store.Core.Domain;
using KL.Store.Core.Contact;

namespace KL.Store.Web.Models
{

    public class ContactModel
    {
        [Required(ErrorMessage = "Kullanıcı adınızı giriniz.")]
        [Display(Name = "Kullanıcı Adınız")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "Şifrenici giriniz.")]
        [Display(Name = "Şifreniz")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        public IList<ContactDetail> ContactList = new List<ContactDetail>();
    }

    public class ContactListModel
    {
        public string Search { get; set; }
        public IList<Contact> Contacts = new List<Contact>();
    }

}
